corrected check for validity of XML submission sent to /instance endpoint