Add: check if data already submitted; if yes, alert.