created the registrations controller