including form that submits to cosmos webservice, with error handling