Added functionality for nickname greeting for main page.