init login and logout