Redirect to login page on failed login. Fixes #628