[fix #55] Improve how validators are specified.