If you’re in the market for a mortgage, avoid these seven costly mistakes.