refactor loginAs in CheckOutScenario.java