I'm pretty sure you cant have vain and vanity in the same sentence since they are from the same word but a big improvement over your mono-syllabic phase
I'm pretty sure you can have them both in the same sentence. Grammatically, the sentence makes perfect sense since Tom is calling on a different definition for vain than he is for vanity.
It reads fine - that's for sure.