Different validity errors
Every input element has a specific object that is called validity. This object has all the information about which part of the data has gone wrong and against our validation restrictions.
Some of the fields are very descriptive and they are correlated with the conditions we have set.
All these properties that are inside the validity object of each element return a boolean and indicate the root of a problem. If all of them are false finally, the valid property returns true and the input's data is considered valid.