created create-post and added code