schema to form + validation to json that conforms to schema