adding registration upon logging in with application, stores u_id and shoppingcart_id in sharedpreferences variables, which can be accessed from other parts of the app.