update user on the server and the client side.