enabled $title variable to replace title in header
Improved loggedIn checking
if admin is already logged in, then he is redirected to admin.php and modification of title