Automagically detect the username.