The Federal election rule is "vote where your legal residence is on election day." Many states allow those whose address has not been updated in the polling books to cast a "provisional ballot" which will be individually checked once the election day polls are closed, but before the final tally is certified. This cross checking always reveals 1 or 2 people who voted in the wrong place, and they have to appear in person at the Registrar's Office to verify by affidavit which is correct. Many states also permit same-day registration and voting with proper ID. In Virginia, where I am an Officer of Elections, everything is handled by closed systems - except paper ballots are used and counted by a scanner. There is no political party registration so voters in a dual party primary have to request a specific party ballot. Every electronic and paper system is verified by 2 or more officers before the polls open and this is repeated once they close. Nobody can leave until all numbers match, and no one has the ability to alter any electronic number. Once everything is completed, electronic and paper copies of the data are certified at each precinct, sealed with signed labels, and taken directly to the Clerk of the Circuit Court and held under seal.
The states have somewhat different rules, so what applies in Virginia might not be the same in Idaho.
Now, let's return to coins, medals, and other stuff.