extended form validation, and debugging