sudo vi /etc/lightdm/lightdm.conf.d/70-linuxmint.conf
Change this:
[SeatDefaults]
user-session=mate
allow-guest=false
To this:
[SeatDefaults]
user-session=mate
allow-guest=false
greeter-hide-users=true
greeter-show-manual-login=true
To see and apply your changes just restart lightdm:
sudo systemctl restart lightdm
If you want it to hide your username when the screen is locked (which you probably do since otherwise if you are away from your computer with a locked screen, it would display your username) then follow this guide to disable lock-screen usernames from showing in Linux Mint
linux, mint, ubuntu, debian, disable, usernames, lightdm, login, guisudo, vi, etc, conf, linuxmint, seatdefaults, user, greeter, users, manual, restart, sudo, systemctl, username, display,