Court of Appeal upholds Chief Justice's ruling that election