update last attribute value after device registration