validate title field