Protecting elections from cyberattacks