You first need to have TWRP installed.I found a tool called MediatekBootloaderUnlock. With that I was able to unlock the Bootloader and now I have flashed the phone. Of course I got to the same point where I need the MI account.
Is there any step by step instructions to install the custom ROM?
To do this read my instructions
1. go into fastboot, put your TWRP.img and vbmeta.img into c drive not under any folder
2. execute
Code:
fastboot --disable-verity --disable-verification flash vbmeta C:\vbmeta.img
Code:
fastboot flash recovery C:\TWRP.img
Downloads:
For TWRP.img

TWRP-3.4.2b CN (wszx150) for merlin(Redmi Note 9/Redmi 10X 4G) [UNOFFICIAL]
TWRP Unofficial for Redmi Note 9/Redmi 10X 4G This build only supports Chinese and English. This is one of wszx150's TWRP builds. And that's it,enjoy ;) This is an unofficial build and we cannot guarantee that this build can be used normally on...

For vbmeta.img
first download this
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
then extract it and find the vbmeta.img under the “images” folder