contact form logic fixes