fixed bug with sharing, added error catching so that if accessing user email is unauthorized, uses default email