adds the validation