private void loginBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loginBtnActionPerformed
       String uName = unameField.getText();
       char[] pwd = pwdField.getPassword();
       String pwds = new String(pwd);
       //int[] uDetails = DbAccess.GetUser(uName, pwds);
       User newUser = DbAccess.LoginUser(uName, pwds);
       
       if (newUser != null)
       {
           HomeFrm hf = new HomeFrm(newUser);
           hf.setVisible(true);
           this.setVisible(false);
       }
       else
       {
           errorLbl.setText("Trouble logging in!");
       }
       //pwdField.setText(Integer.toString(uType));
       
       
    }//GEN-LAST:event_loginBtnActionPerformed