updated to allow custom registrations controller