sending token to server, not yet tested.