valid: validate the key in the case where we give a validator instead of a string
v0.3.10