resolved problem of redirection on LogIn