more error handling for certain use cases of viewing profiles publicly