Fix contact form to work locally and in production