Storing id of logged in user in session instead of it's entity. Partially implemented checkout page using AngularJS controllers.