Smart RFID lock