Add initial logic for capturing username and password when
authentication is required.