candidates get elected in an election