Not redirecting to Thank you page and email notifications not sent