Mistakes to avoid when buying a home