What financial factors should be considered before committing to a mortgage?