started adding login functionality