Validate files