Log in/out seems to be working correctly now