validate files formats