Fixed bug in setting passwords.