fixed redirection error after login