Redirect on login error. Fixes #1