add username/password dialog (resolve #3)