Fix the login redirect