Extracted category update method
Refactored new post form