else if (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)){ $_SESSION['errors'][] = "Invalid email format!"; }