add two examples for validator