improve password dialogue