Created $errors array and a foreach loop to change each $errors variable to an $error variable. Gave keys to each $errors variable.