Can't change my administrator name
I can't seem to change my admin name on my iMac.
When it gives the pop up "System Preferences is trying to unlock Users & Groups preferences", I enter the username shown in the left under current user, and I enter my password, but it won't unlock. I've changed the password and still no luck. Seems like it's the username problem and not the password. Also, I cannot go into the user (via Advanced) to view the username, as it is locked (and to unlock I need to enter username & password).... Please help.
iMac 27", macOS 10.13