Redirect login fix