private void button1_Click(object sender, EventArgs e)
        {
            localhost.Service1 ser = new localhost.Service1();
            bool isalreadyexist;
            bool isalreadyexistpassed;

            ser.IsAlreadyExist(txtusername.Text, txtpassword.Text, cmbtxt.Text, txtanswer.Text, out isalreadyexist, out isalreadyexistpassed);
            if (isalreadyexist)
            {
                MessageBox.Show("User already exits");
                txtemail.Text    = "";
                txtusername.Text = "";
                txtpassword.Text = "";
                txtconfirm.Text  = "";
                txtanswer.Text   = "";
                cmbtxt.Text      = "";
            }
            else
            {
                if (txtpassword.Text == txtconfirm.Text && txtpassword.Text.Length >= 6)
                {
                    ser.RegisterStd(txtusername.Text, txtpassword.Text, cmbtxt.Text, txtanswer.Text);
                    MessageBox.Show("User has been Registered");
                    txtemail.Text    = "";
                    txtusername.Text = "";
                    txtpassword.Text = "";
                    txtconfirm.Text  = "";
                    txtanswer.Text   = "";
                    cmbtxt.Text      = "";
                }
                else
                {
                    MessageBox.Show("Invalid Password Length or mismatch password");
                }
            }
        }