testing comms with JSON validating forms and uploading images