private void changepwd(object sender, RoutedEventArgs e)
        {
            mainDal m = new mainDal();

            m.updatePassword(this.Name1, this.newpwd.Password);
            this.Close();
        }