Capturing returns from usernameandpassword dialog