added in event module and adding in hooks on the login