add socket.io authentication