private void button1_Click(object sender, EventArgs e)
 {
     if (txtpassword.Text.Length >= 6)
     {
         localhost.Service1 server = new localhost.Service1();
         server.resetPass(txtusername.Text, txtpassword.Text);
         MessageBox.Show("password has been reset");
     }
     else
     {
         MessageBox.Show("Invalid password length");
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     localhost.Service1 server = new localhost.Service1();
     server.resetPass(textBox1.Text, textBox2.Text);
     MessageBox.Show("password has been reset");
 }