fix redirection after login