finally a good authentication system implemented for the chat system of socket.io