Also advisable to research US capital gains liability. If you are on the deed with your UK spouse, your property will be liable for US capital gains because US citizens are taxed on worldwide income / gains.
Your US capital gains liability (if any) will probably depend on a few factors:
1. how much profit you make from the house (if any)
2. the capital gains you've already paid (if any) in the UK
US Citizens do not have to pay capital gains on the sale of primary residences were the gain was less than $250,000 for individuals (or $500,000 for married couples filing joint returns, which you would not because your spouse is not a USC or LPR).
Gain is factored by subtracting how much you paid for the property, including purchase fees; fees you paid to sell the property; and any capital investment you made in the property, like paint and flooring; from how much you ended up selling the property for. You don't owe anything on any gain under the $250k threshold.
If you think you might somehow make more than $250k in gain on the property at the time it's sold, you might consider excluding yourself from the deed, if possible. Do consult your real estate attorney on the ramifications.
If you find that you are having trouble selling the property and leave before it has sold, or decide to rent it out and sell it later, the property ceases to become your primary residence and you would no longer qualify for capital gains shelters in the US or UK. Just something to be aware of.
If you know you're probably going to be moving, I'd say reconsider buying property you don't intend to keep for investment purposes. Consider how much you are paying in rent or if you can live rent free with family. Compare that to your purchased housing cost including purchase and sales fees and any improvements you make to the property. Also take into consideration the risk of not finding a seller or having to sell for less than what you have into the property. Keeping cash on hand could be beneficial. Either way, both cash and real estate assets can be used to meet income / asset requirements for your DH's US visa application.
GL!