implementing login/logout/signup.