Make password-change test log in before each test

Should probably move this function to a library of test-fixture support
functions, sometime in the near future.