State Residency and Taxation: Keys to Avoiding Tax Consequences