Added check_logged_in.php to prevent unauthorised access