Added functionality to collect name and email through stdClass and display it on screen.