Cannot login to mac after changing username and folder name
I have new Macbook pro with M1 chip(Big Sur). I created two users from my old macbook pro. Then I wanted to name and name2, but I wanted to change their names and recalled name -> name-old and name2 to name and also changed folder name of "name2" to "name". But I have not done this for first user. And when I saved this settings, my mac crashed. Now when I start it there is two users "name" and "name-old", and after entering password it doesn't show any error but just loading indefinitely. I am practically locked out of my laptop. I think there are now two user folders with the same name and may be this is the problem.
Do you have any ideas what can I do?
Thank you!
MacBook Pro 13″, macOS 11.2