In this sample is illustrated how to validate users input.