Simplify user name detection