private void bbreset_Click(object sender, EventArgs e)
 {
     localhost.Service1 server = new localhost.Service1();
     if (txtpassword.Text.Length >= 6)
     {
         server.resetPassTeacher(txtusername.Text, txtpassword.Text);
         MessageBox.Show("password has been reset");
     }
     else
     {
         MessageBox.Show("Length of password is incorrect");
     }
 }