corrected 'enable enregistrer' logic