I am in the military stationed in Virginia, but my hope of residency is in Alabama. I own a home in Virginia how do I claim the Virginia state taxes?

When I input the home tax information it applies the refund to my Alabama tax return.