added postForm to use post form fields instead of json