Fixed auth issue when logged out