private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLoginActionPerformed
        // TODO add your handling code here:

        if (this.validateUser() == true) {
            System.out.println("username validated");
            this.setVisible(false);
            StudentForm sf = new StudentForm();
            sf.setVisible(true);


        } else {

            txtPassword.setText("");
            txtUname.setText("");
            JOptionPane.showMessageDialog(null, "Invalid username or password", "Message", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_btnLoginActionPerformed