login added, logout added