login method: call loginWithUsernamePassword only if options.username/options.email is not undefined
1.3.8