fixing the validator spec