* @param password Character-array containing the password
     * @return true if the login-data is correct, false otherwise
     */
    private boolean checkLogIn(String accountname, char[] password) {

        if (accountname.equals(_adminName) & new String(password).equals(_adminPass)) {
            adminLogin();
            return false;
        }

        if (accountname.equals("")) {
            label_lErr.setText("Falscher Benutzername oder falsches Passwort!");
            return false;
        }
        String userlist = "";
        try {
            userlist = CSVHandling.readCSVString(Sims_1._usersFileName);
        } catch (Exception e) {
            e.printStackTrace();
        }

        if (userlist.contains(accountname)) {
            String userPw = "";
            try {
                userPw = CSVHandling.readCSVStringArr(Sims_1._dataFolderName + "/" + accountname + "/" + Sims_1._profileFileName)[1];
                //loggedinas.setText("Eingeloggt als: " + accountname); // by nadir , currentuser
            } catch (Exception e) {
                e.printStackTrace();
            }
            if (userPw.contentEquals(new String(password))) {
                return true;
            }
        }
        label_lErr.setText("Falscher Benutzername oder falsches Passwort!");
        return false;
    }