validation on attachment tab