You need to create a rule to update the value of your username field whenever the form is opened. Go to "Tools / Form Options / Open and Save" and add this rule: Action: =fx Set a field's value, Field: @username, Value: username(). You should be good to go.