Moved preventDefault to fix invalid submissions.
Merge remote-tracking branch 'origin/master'