add users and login functionality