Fix syntax error with vote validation