fixing validation rules for registering a user