working on post edit form
refactoring submitPost and editPost
normalising categories