user name is not home directory
so i can log into my mac book pro but when i go to groups and i want to change something on advanced option, it asks me to enter my username and password. i am sure i am entering the password correctly because i can log into my mac but somehow the user name seems to be wrong. its not my home directory name obviously because i tried with caps on and off but did not work. i recently change something on advanced option in groups which is most probably causing this problem. any shortcut to know what is my user name. i can't make any changes on my mac due to this username problem. i tried whoami on terminal but the username is again, not correct
MacBook Pro 13", macOS 10.13