validations for registration