@AhtishamAshraf Don't worry. I forgot to tell you that you can just sit back and watch, and just go away don't you software debugging on RFID, and come back a couple of days, and see how I am getting on. Actually this replace-relay-by-mosfet-switch is a common trick in dc motor and solenoid applications. In other words, my suggest circuit if proved good, could be used in magnetic lock, electromagent ic lock, and motors as well.
And if my mosfet switch does not work, you can just stay with your relay switch, and hope that the trouble is on RFID code, not related to any hardware.