add the function on fetch username