login accept devid, save in session
send devid on replace session
enhance log