How to check if a user is logged in (how to properly use user.is_authenticated)? How to check if a user is logged in (how to properly use user.is_authenticated)? python python