Adding validation check to `handleSubmit`.

Also adding `e.preventDefault()` and changing to plain `return`.
Merge pull request #2 from michaelrp/patch-1

Adding validation check to `handleSubmit`.