File validator, allowEmpty fix