fixed bug: when invalid data is collected the authentication threads
also sleep for the sampling period