added gotoLoginPage method