Added check to generatePassword() for minimum letter count.