public static boolean isValidLogin(String userName, String password) { // is the user on file? if (AdminUsers.getPassword(userName) == null) { return false; } // does the password match passeod from table? String passwordFromDB = AdminUsers.getPassword(userName); if (password.equals(passwordFromDB)) { return true; } return false; }