write a function to extract blog post state from create/edit form.