login and logout first step