adding validation for user creation