removes duplicate headlines, adds form validation