Added check for logged in user

Added check for logged in user. If no users are logged in the system.
It will install the updates.