How do you log information about a memebr when they submit a form?

I have a custom form that I have connected to a dataset. But I want to log the member’s username and profile image so that this can be laced in a repeater elsewhere on the site. Does anyone know how to automatically collect the username and profile picture into the dataset?