Fix validation bug for dependents fields