fixing vote validation issue