Fixing RegistrationController checkAccess.