adding login with controller example