Fix bug redirect login