fix some bugs in the registrations_controller for sign up after invite