fix incorrect redirect after failed login.  Resolves #152