Fixed password handeling and filewriting / reading