Validation and image upload for XML importing partly finished.