protected void RegisterUser(object sender, EventArgs e)
        {
            var ubuoyAuth = new BusinessLayer.UbuoyAuthentication();
            bool userRegistered = ubuoyAuth.RegisterUser(tbEmail.Text, tbPassword.Text, tbDOB.Text, tbFirstName.Text, tbLastName.Text, tbPhone.Text, tbStreetAddress.Text, tbZip.Text, tbCountry.Text, tbCity.Text);

            if (userRegistered)
            {
                lblMessage.Text = "User registered successfully";
            }
            else lblMessage.Text = "Oops!";
        }
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            pnlError.Visible = false;
            var email = tbEmail.Text;
            var password = tbPassword.Text;
            var UbuoyAuthentication = new BusinessLayer.UbuoyAuthentication();

            if (UbuoyAuthentication.UserExists(email, password))
            {
                Response.Redirect("~/Profile.aspx");
            }
            else
            {
                pnlError.Visible = true;
            }
        }