fix length validator