Fix validation for the "authorities" attribute.

Fixes #5593