Change logic to display success message