validate access code mode param
tiny logging tweak