modified form validation and addpayment