public IActionResult SignUp2Page(AccountData AD,
                                  string Password1Confrim, string Passwor2Confrim, string Remember)
 {
     ViewData["EmailConfirm"] = "";
     if (ModelState["Email"].ValidationState != (ModelValidationState)2)
     {
         ViewData["EmailConfirm"] = "Enter the correct email address";
         return(View());
     }
     if (AD.FindEmail())
     {
         ViewData["EmailConfirm"] = "" + AD.Email + "is used";
         return(View());
     }
     if (Password1Confrim != Passwor2Confrim ||
         string.IsNullOrEmpty(Password1Confrim))
     {
         ViewData["PasswordConfirm"] = "Passwords do not match or are not specified";
         return(View());
     }
     AD.Password = Password1Confrim;
     AD.SaveAccountData();
     return(RedirectToAction("SignUpCredentials", AD));
 }