debug form state in submit handler.