Redirects to intended destination on login and failed login