check if user is logged in

check if user is logged in before performing decryptAll()