For now I'll presume you have the field on the form, but that specific data card or field is set to not be editable on the Form. If so, I presume you use the Default property of the Data Card to decide what value is on the Form (and thus, what will be sent).
I'll also presume for now that it's possible to tell who is logged in or not by checking it somewhere in your database, with something like a simple LookUp.
So if that's the case:
First, use a variable for the username data card's Default, instead of a hard coded value
varUsername
Just prior to the submit (i.e. this is usually done on the OnSelect property of your Submit button) you can perform a Lookup against your data source to check if they are logged in, assuming you have a way to do this, and then set the variable value accordingly.
Now, on the OnSelect property of your Submit button
//pseudocode
Set
(
varUsername
,If
(
Lookup(...).Logged_in
,"whateverYouWant" & "(LOGGED)"
,"whateverYouWant"
)
)
The above should be modified for your scenario.
Check if it helps @GeminiWorks