Windows login password can be caused by the following reasons:
1. Forgot or lost
2. locked by accident but forgot the password
3. Computer hacked with a password.
According to this, you can backup your password. If you haven't backup password, you can follow this guide: How to reset Hp password