Getting valid token even when widget is not solved

I need to validate user name form. I used this div:

On onSubmit callback I’m receiving a valid token (validate by the server), but when the widget appears but not get solved onSubmit still invoke with valid token and this is not a good behaver.
Please help,
Thanks Hadar