Please, take a look at the validator examples and play with different defined validator parameters.