Fix login

Now makes sure a user is logged in. Still slow, as it is going to the
server ever single time a page request is made. Probably better to
intercept 403s and use them as you would normally use a 401.