fixed read password stuff