check for invalid vote