work & own house in MD, but live in VA - can I file tax as VA resident?

I'll be moving to VA (to live with my in-laws) soon, but I work in MD and own a home in MD as well.

 

So I'll be living in VA, but since I own a home in MD (I don't plan to rent it out yet, so it'll just be empty and I'll be paying monthly mortgage and property taxes), can I only pay VA taxes? Or does the fact that I own a property in MD prohibit me from doing this?

 

Thank you