Issues with login and logout

Issue #3 Resolved