altering forms to check for json in POST, until portality dao automatically provides a save_from_form that does that for us