Changing it via sudo passwd said it was changed sucessfully, but when I log out and log back in the new password doesn't work. However it'll take the old password. So I tried sudo passwd (my prifile name) and went through the password changing steps, And it worked, but when the desktop loaded I was greeted with it saying my login password and login keyring didn't match. So it made me enter a password. When I tried my new password it didn't work. So I tried my old password and that worked. So I don't know what to do. I need them to be the same. (Ubuntu 20.04)
Edit: So I logged out and back in but this time it didn't give me the issue so what's happening?