Hmm, if variable is the right one i guess you forgot the ";" at the end

return $_SESSION['USERNAME'];
I would extend this a little bit.
if (isset($_SESSION['USERNAME'])) {return $_SESSION['USERNAME'];}
else {return 'Guest';}
As a session is only created if a user is logged in, you wil get an error messabe if the variable does not exist.