Fixed error while adding a post to blog