logging of login/logout