enable to login and logout