A validator that checks if the length of a value is equal to a specified length.
This validator is used to validate strings and other types that have a length property.
It returns an error message if the value is not equal to the specified length.
The length parameter specifies the desired length that the value should have.
Example usage: