forgot to add an else to validate xml files