Added code to ensure bad passwords never get set.