validate files