Put login code in it's own method in the test case since we do it all the time