“custom validation” source code snippets