I reviewed your post and I understand that the computer is directly booting to the desktop screen without asking for the password.
Don’t worry, I assure you I will try my best to get this sorted.
I recommend you follow the below steps and check if it helps.
Press the Windows and R keys on the keyboard to open the Run box and enter “netplwiz.” Press the Enter key. In the User Accounts window, select your account and check the box next to “Users must enter a user name and password to use this computer.” Click the Apply button. In the box that appears, type your password where prompted. Click the OK button.
Restart the computer. You should be asked for a password now to get into your Windows 10 PC.
Let me know how it goes and you have a great day!
P.S: Welcome to the HP Support Community 😊
If you wish to show appreciation for my efforts, mark my post as Accept as Solution.Your feedback counts!
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".