If your Mac starts up without displaying the login window, it’s set up to bypass the login window and automatically log in a particular user.
Automatic login allows anyone to access your Mac simply by restarting it. If automatic login is enabled, make sure your Mac doesn’t automatically log in as an administrator. When FileVault is turned on, automatic login is disabled.
If several people use a Mac, it’s best to add a separate user account for each person and turn off automatic login. Creating separate user accounts protects the information and settings of each user.
Choose Apple menu > System Preferences, click Users & Groups, then click Login Options.
Click the lock icon to unlock it, then enter an administrator name and password.
Click the “Automatic login” pop-up menu, then choose Off.
The next time you start up your Mac, the login window appears, and a user name and password are required to log in.