Election security involves everything from registering voters and counting votes to defending against foreign interference.