How to avoid common mistakes when purchasing a home.