Validation for 'type' argument