Sending data to server working