fix -show alert after login and hidden alert after logout