add validation checks for metadata file; closes #490