detect invalid votes