Fix redirect login error