fixed error with length validator