modified registrations controller, added svpply auth logic