Fix redirection after loging