introducing the login and cart endpoints