Add mac validation to save_changes.php frontend/php