Added SocketIO and authentication for users