laid down groundwork for data collection inside setpassword.