You can log off Windows 10 in four different ways to put your computer into a password-protected screensaver mode.
Windows 10 allows you to change your password or recover it at any time if you forget it.