Warns user when trying to leave an activity form with unsaved data. closes #3