After a person activates their account by following the link in the email, it says

Welcome to nameofyoursite.com, ! It is not displaying the username after the site name.

In the code of invite_friends.tpl, it says
Code:
Welcome to {$sitename}, {$username}!
I was able to fix this by replacing {$username} with {$smarty.session.USERNAME}.