added  connect / disconnect event

added code to add / update user information when an user is connected.
or disconnected