adding login switch