fixing registrations controller