Error executing process model through site

I developed a process model with a form that collects employee details. If the "submit" button is clicked, it moves to a user input task with "Approve" button. Upon pressing this, the details are updated in the database. The issue is that when I run the process model in debug mode, it works perfectly, but when I run it through the site action button, the first page is displayed but doesn’t proceed to the user input task. Instead, it stayed on that page.

Please provide a solution.

  Discussion posts and replies are publicly visible