Fixed a bug where login would persist across sessions after attempting to log out