Die if not logged in to protect files

Avoids risk of them being run by visiting URL when not logged in