Creating posts controller with CRUD