My tab bar controller is being presented oddly

So I am making an app with a login in feature and I wanted it to auto sign in the user after they close the app and re-open it. Ideally I wanted them to see the tab bar controller when they open the app. This is functioning properly but it is being presented modally and I am not sure how to fix this. If anyone has a suggestion on how to fix this I would love to hear it.

you can try in storyBoard

It is being done programmatically so that once the user has logged in they will remain logged in and will see the tab screen, but it is being presented modally.