[FIXED]

Instead of using the official MiFlash, which didn't work for me.

Download the FASTBOOT correct latest version ROM for your device. Then extract it, if you can't get your device to work with MiFlash then do the following:

Connect your phone to your pc *your phone has to be unlocked, then open the rom and click on one of the 3 bat files.

I clicked flash_all.bat since that's the safest option, but it does wipe your phone. wait for it to do it's thing. Your phone should reboot after and then start loading again, it takes a while so don't be scared if you think you looped again.

Then you are done.