get username function