Error checking for sign out button