How can I validate if the email address has been entered already in the form and change the thank you page redirection?