Changes from $.cookie('user') to $.cookie('user_id') and $.cookie('username')