the posts are inserted in database, if post havent data output error