check if user is logged in before reboot