Added missing $error and $errors variables