Loading indicator only on sign-in form submit

When email field is not valid, html5 validator prevents form to submit, and sign in button will be stuck on loading.