Good catch! 2 things:

> ... onSubmit handler to the form that clear the form fields ...

"clears"

> ... if the user has entered text in both.

This doesn't flow as well as I'd like. How about something like "when the form is submitted with with valid input"?