It sounds like you need to talk to a local real estate attorney. This has too many moving parts for a simple web answer.
This is not legal advice and is not intended to create an attorney-client relationship. The post is only an opinion. You should speak to an attorney for further information. The poster is licensed only in CT & NY. You can reach us at www.hamadlawfirm.com. If this post is useful to you, please remember to upvote it.
Just an observation-- I've read at least four questions on the same topic, all from Millersville, MD. I am positive it is the same person asking about the same situation. All of the questions are framed differently enough to produce conflicting answers. None of the questionss have all the facts. You are doing yourself a disservice, and you are getting muddied advice.