Another way to do that is to create a Home page for a defined user role, like customer. So whenever customer login hence automatically show the name of the customer reterived from the database. if you want to show more than just name then please search app store for "format string". Its a very good app for displaying multiple attributes at the same place. Best part of this widget is you can use inline style class as well. Hence this widget comes handy in a situation, when there are mutiple attibutes to display.
Also in order to reterive the name of the user, you can cast currentUser into the domain specfic object to retierve your user name.
Hope this will help! :) Thanks Shubhashish
Have a look at this widget, in addition the login button widget also allows for displaying the username