I am using fix access log build and rc522 reader and UID was scanned correctly, but every few hours rc522 would stop responding which can be fixed by restarting esp. So I tried using PN532 reader but now it misses 0s in Uids which causes some users to get locked out.