Updated registrations controller to return json on failure