fix validation on a required file -fixes #6