added simple login and logout