Added the functionality of creating a new post