Can't log in after changing user name
Hello,
I have a iMac with MacOS High Sierra version 10.13.6 (not sure if that is relevant) that I tried to change the username on, after making an uneducated attempt I've been logged out of the system preferences. I was still able to log in and out of the computer though.
I basically opened up System Preferences > User & Groups > Unlocked > Advanced settings
Then I changed the Group, the Account Name and the Full Name.
I then logged out and restarted the computer. Once restarted the old name was still up and I was able to log in. I tried to log back into advanced settings and the window that pops up asking for credentials doesn't open up with a name automatically in it anymore, and no combination of password and user name let's me in.
I tried changing the password under Users & Groups and still nothing.
How can I fix this issue?
Thanks in advance.