You should check the return value before displaying a success message