Fix advanced search add button only working once for each type. This was due to bootstrap behaviour whereby the dropdown state becomes inconsistent if it is toggled manually.

Fix removal of the error state on the date field after a valid date is entered.

Add selenium test to ensure multiple rows of a certain type may be added.