Fixing the validator for status values