run program only if user is logged in