Generator password function added