Hopefully that doesn’t have an effect on anything else now.
In this class the Username variable holds the name of the user who is just logging in or registering.
The SaveUserProfile function is for saving the current webuser’s or someone else’s profile.
So this fix hopefully can not cause any problem.