Any person running for public office must run as a candidate consistent with the political party designation under which the candidate is registered at the time of the filing of the nomination petition, whether the political party designation indicates an affiliation with a political party as defined in section 301 or otherwise.