added admin authentication to cron job