fox addValidator method