Here are three things you need to know before buying a new home