Automatically detects logged in user