Making a mixin for validating host authorities