When the field is marked as invalid, the focus change logic does not work properly.
How to reproduce:
1) Focus in login-field:
2) Type "123";
3) Press "tab".
It looks like you're new here. If you want to get involved, click one of these buttons!