complete the function of creating a blog