Submitting a form to a service and handling server-side validation on an HTML client