protected void SubmitClicked(object sender, ImageClickEventArgs e)
        {
            if (Page.IsValid) {

                string userId = WebComponents.CleanString.InputText(txtUserId.Text, 50);
                string password = WebComponents.CleanString.InputText(txtPassword.Text, 50);
                string email = WebComponents.CleanString.InputText(txtEmail.Text, 50);
                AddressInfo address = addr.Address;
                string language = prefs.Language;
                string favCategory = prefs.Category;
                bool showFavorites = prefs.IsShowFavorites;
                bool showBanners = prefs.IsShowBanners;

                // Store all the customers information in an account business entity
                AccountInfo accountInfo = new AccountInfo(userId, password, email, address, language, favCategory, showFavorites, showBanners);

                ProcessFlow.AccountController accountController = new ProcessFlow.AccountController();

                if (!accountController.CreateAccount(accountInfo)){

                    // Tell the user they have failed to create an account
                    valUserId.ErrorMessage = MSG_FAILURE;
                    valUserId.IsValid = false;
                }
            }
        }
        protected void SubmitClicked(object sender, ImageClickEventArgs e)
        {
            if (Page.IsValid)
            {
                string      userId        = WebComponents.CleanString.InputText(txtUserId.Text, 50);
                string      password      = WebComponents.CleanString.InputText(txtPassword.Text, 50);
                string      email         = WebComponents.CleanString.InputText(txtEmail.Text, 50);
                AddressInfo address       = addr.Address;
                string      language      = prefs.Language;
                string      favCategory   = prefs.Category;
                bool        showFavorites = prefs.IsShowFavorites;
                bool        showBanners   = prefs.IsShowBanners;

                // Store all the customers information in an account business entity
                AccountInfo accountInfo = new AccountInfo(userId, password, email, address, language, favCategory, showFavorites, showBanners);

                ProcessFlow.AccountController accountController = new ProcessFlow.AccountController();

                if (!accountController.CreateAccount(accountInfo))
                {
                    // Tell the user they have failed to create an account
                    valUserId.ErrorMessage = MSG_FAILURE;
                    valUserId.IsValid      = false;
                }
            }
        }