It’s essential to change your login password from time to time to protect your privacy. Thankfully, Apple makes it easy to change your login password using their instructions.
If you’ve forgotten your login password, you’ll need to reset it. See Reset your Mac login password.