adding login controller