Save the customer to server when the form submitted is valid.