reading and decoding passwords in new thread