validate title and test for post