Hi petsie and Boggin than you for your replies. The problem now is that I tried to restart my pc, but it is stuck before it gets to the login screen. It has been stuck there for about 5 hours so far. I did try to boot it with a recovery usb, but it would not boot.
Eventually I did get to recovery and selected advanced and tried to go back to a previous restore point, but it said it was not successful. I tried to reboot again and it stuck with the spinning wheel and won't get to the point where I can put in my password.
So until I can get my pc to log in somehow I cannot try your solutions.