IP and hostname only are validated if hidden trigger is used.

Fixes #1