validation done on all files