$errors['email'] = '';
$errors['family'] = '';
$errors['login'] = '';
$errors['email2'] = '';
$errors['family2'] = '';
$errors['login2'] = '';
$errors['email3'] = '';
$errors['family3'] = '';
$errors['login3'] = '';
foreach ($errors as $key=>$value){
$errors[$key]='';
}