ADd login and logout