started incorporating login functionality