Introduction
Validation checks data before saving it. This stops wrong or bad data from entering your system.
When a user submits a form with their email and password.
When uploading files to make sure they are the right type and size.
When saving user profile information like age or phone number.
When accepting input that must follow specific rules, like dates or numbers.