validation tests for title and subtitle