implemented the create and the new action for posts