You can factory reset your iPhone and wipe all its data in the Settings app. If you don't remember your password, you can use iTunes instead.
Google Chrome's Password Manager compiles all of your login credentials and allows you to autofill your username and password for saved sites.