Replaced setPasswordAttribute to auto hash password.