Fix redirection after logging in