fix #180 - JSON parsing, form validation