flush after login