adding login and authentication