fixed bug in registrations controller