 
   if (buttonState == HIGH) {
     toggle(locked);
-    flashLed();
+    feedback(false);
   }
   
   uint8_t success;


    if (isAuthorized) {
      toggle(locked);
      flashLed();
    }
  }
}

  pinMode(ALERT_PIN, OUTPUT);
}

void feedback(alert) {
  digitalWrite(LED_PIN, HIGH);
  if (alert) {
    digitalWrite(ALERT_PIN, HIGH);
  }
  delay(1000);
  digitalWrite(LED_PIN, LOW);
  if (alert) {
    digitalWrite(ALERT_PIN, LOW);
  }
}

void toggle(bool lockedState) {
