Adds the generating password by Ajax.