#5 added is_logged_in flag to user_data