fixed login page redirection