Add variable to detect if a user is logged in.