Validation for target id