Fix validation error in registration form