If you go to Settings>Mail>Accounts>select the account in question by tapping on the title, then on the next screen, tap on the Account name. Just below the Incoming Mail Server, you should see Host, Username, Password. You edit the password there. Just below that, you will see Outgoing Mail Server, SMTP, tap on that. The next page will list your primary and any other SMTP servers. Tap on the Primary if the Yahoo account is the primary. The next page will list Outgoing Mail Server, Host, Username, Password, use SSL, Authentication, Server port. Go back to Password, edit there.
If you are not seeing that, then it has something to do with how Yahoo mail is configured. But as I said originally, and supported by Idris, delete the account and add it back. That gives it the opportunity to verify the account settings when you enter it, and you will not experience the username and password issues.