Fix redirection on login