run validations for example and definition on update and also revised how error and notice flashes are saved and displayed