getting the user name automatically