Added length validator.