added validation success and failure callbacks to options

Added validation success and failure callbacks.