I am a Military Spouse and my husband's state of residancy is texas which has no state income tax, but on my w-2 i was charged state income taxes from maryland?

i had 1500 charged from maryland should this have been the case?