change sudo into user check