Fixed missing function call in user_is_logged_in