validate() method
Each time validate() is called, the elements are validated one-by-one and a boolean value is returned. This method returns true if all the elements are valid, and returns false if at least one of the elements are invalid. Elements without validation settings are treated as valid elements.
