protected void Regbtn_Click(object sender, EventArgs e)
        {
            if (txtFName.Text != string.Empty && txtlname.Text != string.Empty && txtPassword.Text != string.Empty && txtusername.Text != string.Empty && txtemail.Text != string.Empty && txtdob.Text != string.Empty)
            {
                Userbll bll    = new Userbll();
                string  gender = null;
                if (rdMale.Checked == true)
                {
                    gender = "Male";
                }
                else if (rdFemale.Checked == true)
                {
                    gender = "Female";
                }
                bool check = bll.isvalidsignup(txtFName.Text, txtlname.Text, txtusername.Text, txtPassword.Text, txtdob.Text, txtemail.Text, gender);

                if (check == true)
                {
                    Response.Redirect("WebForm1.aspx");
                }
                else
                {
                    errorlabel.Text    = "Username already Exists";
                    errorlabel.Visible = true;
                }
            }
            else
            {
                errorlabel.Text    = "No field can be left empty";
                errorlabel.Visible = true;
            }
        }