The issue in this case is that the party didn't enforce its rules, so Gates was allowed to stand for office as a Democrat.  Also, he hasn't been elected yet.  He is opposed in the general election by Republican Mark Pa`aluhi.