fix redirect login page