private boolean takeLogin() {
        //convert the password field to a string
        char[] pass = tfPassword.getPassword();
        String pw = "";
        String user = tfUser.getText();
        for (int i = 0; i < pass.length; i++) {
            pw += pass[i];
        }
        boolean found = false;
        try {
            HashMap<String, String> a = DB.fetchRow("select aid from administrator where aid=" + user + " and losenord='" + pw + "'");
            if (a != null) { //if we got a row back from the db, then the user with the given password existed
                if (a.size() == 1) {
                    found = true;
                    String aid = a.get("AID"); //set who was the user that logged in correctly
                    if (Validate.containsOnlyDigits(aid)) {
                        userLoggedIn = Integer.parseInt(aid);
                    }
                }
            }
        } catch (InfException e) {
            e.getMessage();
        }
        return found;
    }