refacter the get username