Hello,

Yes, your solution works properly.
I suggest you another solution (in this case will hide the username from another pages too):

- open file: includes/classes/rlAccount.class.php;
- go...