email form logic handled