added form validation and formatting to payment information, and callback function when form is submitted