fixed order validate for attachment