validate files after upload