adding login functionality (step 9) done