Check if logged in
Update log handling