added better handling of checkout form submission errors