validate title and textarea