Fixed the contribution when the form is invalid.