ensure users can't vote if motion closed. small refactor