validate for all type