improving code readability for RegistrationController