Fix the failure redirect for login