validates posts title and content