For clarity, it would be best to remove the if statement and set `data["name"]` unconditionally.

Otherwise, this code looks like the user can forge being a different user (although the user_name and user_email fields are not used for anything).