Fix to a validation error

- regkey|value's validation was inversed only accepting incorrect entries