Set attachment validation