when selecting user's role with highest prioroty, added check that the term still exists