Writes flagged and flagged_reason values in review form submit