add hidden type for conditional validation