change to read mode for reading password