Add validation callbacks.