Hopefully convert findLogins to use promises
Asynchronize onUsernameInput.