Living in State other than state incorporated in.
The answer to this question would greatly depend on the details of how your business is managed and operated. If you have an office or physical location in PA then your place of residence matters only in regards to your personal taxation. If you run your business from home, you might have to register it in Maryland as foreign entity.
I would recommend you to consult a tax expert and/or a legal advisor to analyze your specific situation.