validate that the post title and contents aren't null