Login: Fixed some issues within login and switched to popup

Disabled hash based navigation again. It caused issues with initial
page load (login dialog/popup flickering). Will work on a different
solution.

Also fixed bug with autologin switch not working (after switch to
flipswitch).