Customization of custom forms submit function