mostly finished but not yet tested createBlog.js.