fixing registrations controller

Here's your fix for the registrations controller.