The OP got a 20", not a 18".
It's hard to say without knowing the geometry of the bike you bought but I'm 6" and rode a 20" hardtail from '04 to '07. I had the clearance and used to prefer longer top tubes with short stems.
So if you have the clearance and the length feels okay, you'll be fine.