added options for errorClassSelector, scrollOffsetOnError, scrollTopOnSuccess