Added error checking to display message if no username is configured.