created global variable to track logged in user