new event triggered on login and logout
fixing dependencies
fixing unappropriate dependency