Saving post data to the server