Fixes the participant name issue for detailed results html output page #581

I made a mistake before and the html page was showing current user name and not participant name. Corrected it.