Add function to update user info through socket.io