to fix the post model and finish the function of create new post