fixed user detection for prompt