Controllers: small refactoring
Action: edit category

Modify handleForm() to be generic.