It rests with the states
It is a responsibility of the states to organize elections either for presidents or for those in the congress and it is their duty to ensure that the elections go smoothly and without any affairs or cheating. The states vary in how they conduct the elections, but most do it under the same pattern while following rules found in the constitution.