Small ype-check change in the validator