added validations for user creation