use get_username function when appropriate