public boolean isAdmin(String loggedinname){ // needs to be logged in name instead of name
        for (int i=0;i<admin.size();i++){
            if (admin.get(i) == null ? loggedinname == null : admin.get(i).equals(loggedinname)){
                return true;
            }
        }
        return false;
    }