Kerry got nominated because a book was published calling him a war hero. He was attacked successfully by his peers because he had said nasty things about his peers in his diary at the time and was dumb enough to let excerpts from that diary be published in that same book.