Adding [online] and [offline] event for user connexion