Fixed bug causing errors on URLs with a trailing /
Added redirect from /login when already logged in