1
If that PC has not been used in two years, that is the most likely cause of the problem, try logging in with your PIN code or select Other Sign-In options and try logging in with your Microsoft account password.
2
If you are still unable to log into the PC:
Start your laptop, just as Windows attempts to load (spinning dots), press and hold Power Button for 5 - 10 seconds to perform a Hard Shut Down
Do this twice
On the third start Windows will boot into the Recovery Environment and from there you can access System Repair, Safe Mode, Command Prompt... etc.
Please try each option one at a time, then see if Windows will successfully login.
.
Go to Troubleshoot - Advanced Option - Startup Repair
See if Windows startup can repair itself
.
Go to Troubleshoot - Advanced Option - System Restore
Check to see if you have a restore point you can go back to
.
If the above fails, go to Troubleshoot - Advanced Options - Reset this PC
Choose to keep your files and apps, just your files or to keep nothing
Then start the Reset