QUASAR: Fix haystack name validation

Ticket #774
QUASAR: Make hostnames case insensitive and add input validation

Ticket #776