[mod:php] Modify validation rules and associations