added logout(WebDriver driver) method