$checkAuth = new CheckAuth($logger);
 $redis = new RedisSingleton();
 $blackList = new BlackLister($redis);
 $error = error_get_last();
 $errors = [];
 $files = null;
 if ($numFiles) {
     for ($i = 0; $i < intval($numFiles); $i += 1) {
         $files = $_FILES;
     }
 }
 $username = !empty($username) ? $auth->cleanString($username) : null;
 $password = !empty($password) ? $password : null;
 $email = !empty($email) ? $auth->vEmail($email) : null;
 $address = !empty($address) ? $auth->cleanString($address) : null;
 $phone = !empty($phone) ? $auth->vPhone($phone) : null;
 $stop = !empty($stop) ? true : false;
 $potentialAbuse = isset($potentialAbuse) ? $auth->cInt($potentialAbuse) : null;
 if ($stop) {
     return false;
 }
 $instructions = !empty(trim($instructions)) ? $auth->cleanString($instructions) : null;
 $action = !empty($action) ? $auth->cleanString($action) : null;
 $username || ($errors[] = "No username was sent over.");
 $email || ($errors[] = "No email was sent over or an invalid Email was sent.");
 $address || ($errors[] = "No address was sent over.");
 $phone || ($errors[] = "No phone number was sent over.");
 $action || ($errors[] = "No action was sent over, do not have enough information.");
 $password || ($errors[] = "No password was sent over.");
 $passLen = strlen($password);
 if ($passLen > 0 && $passLen < 8) {
 $errors = [];
 extract($_POST);
 $username = !empty($username) ? $auth->cleanString($username) : null;
 $password = !empty($password) ? $password : null;
 $newpassword = !empty($newpassword) ? $newpassword : null;
 $newpasswordConfirm = !empty($newpasswordConfirm) ? $newpasswordConfirm : null;
 $email = !empty($email) ? $auth->vEmail($email) : null;
 $address = !empty($address) ? $auth->cleanString($address) : null;
 $phone = !empty($phone) ? $phone : null;
 $city = !empty($city) ? $auth->cleanString($city) : null;
 $state = !empty($state) ? $auth->cleanString($state) : null;
 $countryCode = !empty($countryCode) ? $auth->cleanString($countryCode) : null;
 $zip = !empty($zip) ? $auth->cleanString($zip) : null;
 $csrf = !empty($csrf) ? $csrf : null;
 if ($phone) {
     $phone = $auth->vPhone($phone) or $errors[] = "Invalid phone format.";
 }
 $instructions = !empty(trim($instructions)) ? $auth->cleanString($instructions) : null;
 $isCustomer = $checkAuth->isCustomer();
 $updatePassword = false;
 $username || ($errors[] = "No username was sent over.");
 $email || ($errors[] = "No password was sent over.");
 $address || ($errors[] = "No address was sent over.");
 $phone || ($errors[] = "No phone number was sent over.");
 $csrf || ($errors[] = "No token sent on request.");
 $isCustomer || ($errors[] = "Not a valid customer.");
 $passwordLen = strlen($password);
 $newpasswordLen = strlen($newpassword);
 if ($newpassword !== $newpasswordConfirm) {
     $errors[] = "The new password and the old password must match.";
 }