Complete upload-password function.