Added security code to the index.php file

Users must now log in to moodle to use the page.
Users must now have the correct permissions to view the page.