connect categories and posts, add category field to post form