add category field to PostType and update after submitting form