new event triggered on login and logout