Username is now NULL in JavaScript when the user is not authenticated