add check validate file