much many updates, including login and out, display corresponding to log status