Addition of generate password function