validation on attached file