Sign out logic bug fixed