fixed issues with login/logout
Merge pull request #41 from dheckman/master

fixed issues with login/logout