adding login/logout api