Pass a <form> ref to validate() so data will always be set

Catches the case where you refresh and the browser keeps the form input values