server: register, registerFriend ,sync is tested successfully.
client: only registerUser is tested successfully.