Added validation code for imported submissions