Added a isLoggedIn check before every admin page.

Before loading an admin page, it checks if the user is logged in.
if it's negative, it redirects to a 404 error, unless the main
admin page is loaded in which case it redirects to the login page.