Rename home folder to match account name (High Sierra)
Per Apple, assuming you're on OS X 10.7 or higher:


Delete the orphaned home directory.
Log out of the account you're renaming, then log in to a different administrator account.
Go to the Users folder on the startup drive. The Users folder contains the home folder of the account you're renaming. Rename that account's home folder.
Choose Apple menu > System Preferences, then click Users &amp; Groups.
Click the lock, then enter the administrator name and password that you used to log in. 
From the list of users, Control-click or right-click the user that you want to rename. Choose Advanced Options from the shortcut menu.
Change the “Home directory” field to match the new name that you gave the home folder in the Users folder.
Click OK, then quit System Preferences.
Restart your Mac.
Log in to the renamed account, then verify that your old files and folders are visible and the account is working as expected.