Logging in and out now works nicely