Check you using right password and account here:
https://support.microsoft.com/en-us/instantanswers/24749d13-a7ec-4aa7-a067-9fc74c16d8d2/to-change-your-microsoft-account-password
is it just a blue screen or a BSOD?
On another PC, download the
Windows 10 media creation tool and use it to make a win 10 installer on USB - handy boot disc
See if you can get into safe mode
change boot order so USB is first, hdd second
boot from installer, on 2nd screen after languages, choose repair this PC, not install
choose troubleshoot (KB, mouse should work in here since you booted off USB)
choose advanced
choose start up options
hit the restart button
choose a safe mode (it doesn't matter which) by using number associated with it.
PC will restart and load safe mode.
Sometimes just booting into safe mode can fix things like this, it will still ask for username/password