I can't log in to my Mac Mini
I'm officially an idiot.
High Sierra. I'm only user. For some reason, I tried to change my user account's user name. In to system preferences > User & Groups. Right clicked my account in left panel, clicked "advanced" and started fiddle.
But became concerned as I thought I consequently had to change name of home folder too, which I did. Saved,
[Re-Titled by Moderator]
Then my account user name in left panel had been changed to "Standard". Right clicked as before, selected "Advanced" and now my user name, both versions in there, had changed to "-2". Changed again to the name I wanted, saved and thought it was OK.
But noooo, now I can't log in to system preferencs.
However, after rebooting, my old username account shows up at login screen and it works with the password. Exactly as before my stupidity. Thank God. But still no way to access system preferences.
How do I fix this?
Mac mini, macOS 12.6