validator works