Modified post to '/subscriptions' to give a JSON response.
Posts data to server on submit.