Fixed 'set preferences' for auth key generation on ManagePreferences pag...

...e so that if you click 'set preferences' multiple times it doesn't mess up the termination date after the first time.