MFRC522 rfid lock

Hi guys i have this rfid door lock code. When I turn on unfortuinatelly the lock pin is on (it can cause after a blackout). So I would like if I turn on the Arduino, the lock can’t be turn on just when I touch my card. Please help me it is very important !!! Thanks!!!

mukodo.ino (3.56 KB)