#3 adding login functionality