add file validate