Sorry Ray, I don't fully understand what you're saying there. What am I cutting and where am I pasting it?
Are you saying validate on the thanks page and then redirect back if there are errors? If so, wouldn't the page with the form on it insert into the database and trigger emails to send (once I've added that code) even if there were errors because it is a page before and separate to the thanks page with the validation code?