Fix race in chrome injections

Close #1568
Separate login errors for username and password

Close #1556