[Y] Add Delay before Check Remove Flag

[Y] Add Delay before Check Remove Flag; resolve login msg loop error