fixed return in validator