When updating the OS to MacOS Sonoma, the system does not recognize the login and password
I accessed my Mac through MacOS Ventura with the correct password normally, even when it went into screen saver, I always typed the same password to exit it. I received an update proposal for MacOS Sonoma, I updated the system and when logging in with the new operating system, it does not recognize the name and password. I can't get in at all. It appears to be a bug. What do I do to be able to access?
MacBook Pro 16″, macOS 13.5