Fix redirection after login