added checks to ensure not everyone with hash can retrieve chat logs