private void submitLogin_Click(object sender, System.EventArgs e)
        {
            string validEmail;
            string validPassword;
            string validFName;
            string validLName;

            validFName    = txtFName.Text;
            validLName    = txtLName.Text;
            validEmail    = txtEmail.Text;
            validPassword = txtPassword.Text;


            addCust = new WebReference1.adminCustomer();


            string resultAdd = addCust.addCust(validFName, validLName, validEmail, validPassword);

            if (resultAdd == "Success")
            {
                goLogin = new WebReference1.loginCustomer();

                string resultId = goLogin.validCustomer(validEmail, validPassword);


                if (resultId == "-1")
                {
                    addCustLabel.Text = "Unexpected Error!";
                    //this should not occur but if the database returns an error we can handle it here.
                }
                else
                {
                    addCustLabel.Text = "Welcome";
                    Session["userId"] = int.Parse(resultId);
                    Server.Transfer("start.aspx");
                }
            }
            else
            {
                addCustLabel.Text = "Invalid Data please re-enter.";
            }
        }
        private void submitLogin_Click(object sender, System.EventArgs e)
        {
            string validEmail;
            string validPassword;

            validEmail    = txtEmail.Text;
            validPassword = txtPassword.Text;


            loggedCust = new WebReference1.loginCustomer();

            string resultId = loggedCust.validCustomer(validEmail, validPassword);

            if (resultId == "-1")
            {
                loginLabel.Text = "Invalid Login please re-enter your password and email!";
            }
            else
            {
                loginLabel.Text   = "Welcome";
                Session["userId"] = int.Parse(resultId);
                Server.Transfer((string)Session["return2Page"]);
            }
        }