Added a first round of validation checking for XML file importing