fixed up instantiation of loginPage