Redirect login

This is a start for #77.

Still not tested locally