return the new registered user

this helped me to update and save the user profile right after registering an user 
hope it helps