I think if you are seeing a "hello" page, the device is already erased and ready to be set up.
As for getting access to the data in the old account, you will have to resolve the log in issues to be able to do that.
This article tells you the various ways you can try to discover your forgotten Apple ID --> If you forgot your Apple ID - Apple Support Typically an Apple ID is an email address you have used. If you are currently using a mobile device that is logged into your account, go to Settings and tap your name at the top. Look in Keychain, and in a browser's security settings if you use it to automatically sign into Apple when using a browser.
This article outlines what to do If you forgot your Apple ID password --> If you forgot your Apple ID password - Apple Support
or go directly to this link --> http://iforgot.apple.com/
If you find you can’t sign in, reset your password, or receive verification codes, you can request account recovery (read this support article: How to use account recovery when you can’t reset your Apple ID password - Apple Support ) to regain access to your account. Account recovery might take a few days or longer, depending on the specific account information you can provide to verify your identity.
If you still need help:
Contact Apple for help with Apple ID account security "This article provides country-specific Apple Support contact information for customers seeking help with their Apple ID password or other security-related issues." Click here --> Contact Apple for support and service - Apple Support