Added code to the onLogin method of UserController.
Added login function to successful registration.
Tracking add username migration