add resource type check for validate action