fixed infinite redirection while login