Run an SFC Scan
When removing malware, make sure it hasn't harmed any important Windows files that are causing the current problem. Apply an SFC scan to automatically detect and replace damaged files with cached copies.
If SFC does not resolve the problem, revert to the previous system restore point where the PIN worked. Note, that this is only possible if you have created a restore point.