change isAdmin func.