Category building custom validation rules securely