private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLoginActionPerformed
        StartForm startForm1 = new StartForm();
        System.out.println("Username "+UserName);
        System.out.println("Password "+password);
        loginPage lPage=new loginPage();
        try {
            lPage.start();
        } catch (SQLException ex) {
            Logger.getLogger(login.class.getName()).log(Level.SEVERE, null, ex);
        }
        if(lPage.getUserName(this.UserName)==true && lPage.getPassword(this.password)==true)
        startForm1.setVisible(true);
        else
           JOptionPane.showMessageDialog(this,"please check your password and user name");
                 //  this.setVisible(false);
    }//GEN-LAST:event_btnLoginActionPerformed