Fixed so that device pw set writes all needed fields, not just the
password and nothing else.