changes to to post controller
commit
added implementation to add new post