added a create-post.php and added code