       for (nfc_handler.currentblock = 0; nfc_handler.currentblock < 64; nfc_handler.currentblock++)
       {
         // Check if this is a new block so that we can reauthenticate
-        if (nfc.mifareclassic_IsFirstBlock(nfc_handler.currentblock)) nfc_handler.authenticated = false;
+        if (nfc.mifareclassic_IsFirstBlock(nfc_handler.currentblock))
+            nfc_handler.authenticated = false;
 
         // If the sector hasn't been authenticated, do so first
         if (!nfc_handler.authenticated)

          }
          else
          {
            for (uint8_t i = 0; i < 6; i++)
            {
                Serial.print(" "); dormitory == 3 ?
                Serial.print(nfc_handler.KeyA_D3_part1[i], HEX) :
                Serial.print(nfc_handler.KeyA_D4[i], HEX);
            }
              nfc_handler.success = dormitory == 3 ?
              nfc.mifareclassic_AuthenticateBlock (nfc_handler.uid,
                nfc_handler.uidLength,
                nfc_handler.currentblock,

    Serial.println("Found an ISO14443A card");
    lcd.clear();
    lcd.print("I Found a card !");
    Serial.print("  UID Length: ");
    Serial.print(nfc_handler.uidLength, DEC);
    Serial.println(" bytes");
    Serial.print("  UID Value: ");
    for (uint8_t i = 0; i < nfc_handler.uidLength; i++)
    {
      Serial.print(nfc_handler.uid[i], HEX);
      Serial.print(' ');
    }
