Factory reset my ipad but app store still logged into another account
In the App Store app, be sure to scroll to the bottom of the main page and sign out.  Then tap Sign in and log in as the correct Apple ID.