Improved authentication for sign out feature