Adding hibernate annotations and RegistrationService.