In this video, you will see how to add data validation to input controls.
A flag is used and its value is set to true or false depending on the type of validation checks applied.
The value of the flag is checked before allowing the application to proceed.