I didn't check, maybe the `compact()` is not necessary. A validator can be null?