Minor changes to log in user after registration