length validator fixed