refactoring user name setttings