Add device logged in function decorator