Custom Button causing issues with 'Created By' Field

Custom Button causing issues with 'Created By' Field

We have a custom button made that creates a new Deal in the Deals module based on information in the contact module. However whenever it is used the 'Created By' field is always the owner of the app and not the person who pressed the create deal button. Is there a way to fix this issue?

Thanks