Reset / Reload forms with button click

Hi webflow community,

I created a “pop-up sign in” form in webflow. The pop-up has a close button on the left corner.

The thing is, when someone failed to fill the form, the error message pops up as usual. I want my form to reset itself when someone hits the close button. When they re-click the sign in button, the form will pop-up brand new, without error signs.

Any ideas how to achieve this?