Added additional logic to Password Generator.