Add how to configure validation in custom editor functions