fixed login redirection