Added require_once(User.php) to checked_logged_in.php to prevent incomplete class load.