Created post controller
Create and update posts