Fixed a bug with logging in

Also auto redirect to basic overview when already logged in, when on
login page. Basic url now also redirects towards the login page.