prevent redirect to ThankYou if server side validation fails