Fixed $setValidity() signature (thanx Basarat)