Quick bug fix in registrationcontroller