added specified length support for length validator