validating multiple files