add the login and logout