private void loginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loginButtonActionPerformed
        if(usernameTextField.getText().isEmpty())
        {
            //usernameIncorrectIcon.setVisible(true);
            errorMsg.setText("Username cannot be empty");
            errorMsg.setVisible(true);
        }
        else
        {
            //usernameIncorrectIcon.setVisible(false);
            errorMsg.setVisible(false);
        }
        
        if(passwordTextField.getText().isEmpty())
        {
            //passwordErrorLabel.setVisible(true);
            errorMsg.setText("Password cannot be empty");
            errorMsg.setVisible(true);
        }
        else
        {
            //passwordErrorLabel.setVisible(false);
            errorMsg.setVisible(false);
        }
        
        if(usernameTextField.getText().equals("test") && passwordTextField.getText().equals("1234"))
        {
            loggedIn = true;
            loggedInStatus.setText("Logged In");
            loggedInStatus.setForeground(Color.GREEN);
            loginDialog.setVisible(false);
            
            if(createSession)
            {
                displayOpenPDF();
            }
            else
            {
                showSessionList();
            }
        }
        else if ((!passwordTextField.getText().isEmpty())&& !usernameTextField.getText().isEmpty())
        {
            errorMsg.setText("Username or Password is Wrong!");
            errorMsg.setVisible(true);
        }

    }//GEN-LAST:event_loginButtonActionPerformed