check_useraccount.php
add
Code:
$smarty->assign("login_lastname",$user_account["lastname"]);
$smarty->assign("login_firstname",$user_account["firstname"]);
then in your template
Code:
Welcome back {$login_firstname} {$login_lastname}
... that might do the trick.