Added custom callback object reference to Form validation library

As per issue #2910 a custom callback reference has been added, which is also checked and executed if the property 'callback_ref' is set.