Logging in when already logging in didn't work. Fixed example.