Make index.php a real front controller, move login.php and logout.php to includes/