cleaned up the code in RegistrationResource