fixed issue of user name not saving