Added form and form checking, also fixed JSON parsing issue.