Use form input to generate password