How to create an invoice when form is submitted?