fixed new and create controllers for categories and post