Add usernameField option to logon

This enables login to work if you want to look up a user by a field other than email (in our case, by the username field).