Fix Logout Logic