Added scrollDuration option to scroll smoothly to the first focused invalid field instead of jumping at it