fix validator syntax