Spouses living in different states

My spouse lived in MS from May 1 through end of year while I lived in TN for entire year.  I listed both states for sales tax exemption.  It flagged my return during the Turbo Tax check.  Is this okay?