Fixed login/logout to work on settings page

* Still a minor problem with scrolling: when user returns from login page, horizontal scrolling is possible (should be prevented from happening).