fix redirect login