Added login requirement to share.php