Buying a home is one of the best long-term investments you can make.