validating various files