Added ability for logged in user to save favorites and generate usercode.