Added functionality to write down user name directly on web page.