implemented socket disconnect event to remove user when they leave the chat