Added authentication clauses

- Added authentication clauses to page.php to prevent stupid people from
doing stupid stuff
- Added authentication clauses to admin.php to prevent stupid people
from doing stupid stuff
- Added additional functionality to admin.php