Added logic for signed out user
made cart api and made adding/removing persistent