bugfix: sync failed when no account was specified
bugfix: password might have been undefined