   // Enter key
   if(key == 40){
     Serial.println(dsp.contents->text);
-    if(matchPassword()) canvas.setScreen(&homeScreen);
-    dsp.setText("");
-    dsp.update();
+    if(matchPassword()){
+      dsp.setText("",false);
+      canvas.setScreen(&homeScreen);
+    }else{
+      dsp.setText("");
+      dsp.update();
+    }
     return;
   }
   // Alt key

Canvas canvas = Canvas(TFT_LANDSCAPE,BLACK);//,TOUCHTYPE_ADAFRUIT_CAPACITIVE);
Screen homeScreen = Screen(&canvas);
Screen pwdScreen = Screen(&canvas);
Buttongrid keyboard = Buttongrid(4,10,BUTTONGRID_USELABELS);
Display dsp = Display(304,40,BLACK,GREEN,GRAY2,24);
Button btnPassword = Button(80,40,GRAY2,WHITE,GRAY1);

int keymap = 0;
char keymap1[40][2] = {

      }else{
        keyboard.setLabel(i+1,keymap1[i]);
      }
    }
    keyboard.show();
    return;
  }
