add type and instance validators