// TODO add your handling code here:
String username = jTextField1.getText().toString();
String password = new String(jPasswordField1.getPassword());
DbHelper dbHelper = new DbHelper();
AuthHelper authHelper = new AuthHelper();
Connection conn = dbHelper.getConnection();
if (username.length() == 0 || password.length() == 0) {
JOptionPane.showMessageDialog(null, "Enter Both Username And Password.", "There's a Problem!", JOptionPane.INFORMATION_MESSAGE);
} else {
//Enter Both Username and Password.
int authFlag = authHelper.attemptLogin(conn, username, password);
if (authFlag != 0) {
//Successful auth
dispose();
// new HomeView().setVisible(true);