put browser login into a function. DRY.
more parameterization of earlier tests to allow reuse of state