add socket.io and validator