debugged form data collection and submission