6 things you should do before buying a home