It isn't a waste of money. The frog will outgrow the 5 gallon and when this happens you will already be prepared with a larger enclosure. This makes for an easier transition later on.
I meant buying just a ten gallon would save me money, compared to buying a 5 gallon and then a 10 gallon. No worries, just an excuse to get another critter when he outgrows it.