Add validation check on entity length up to 256

@markhibberd yeah, that makes more sense. I moved it to `validateFact`