Added check for root user