added local storage to user model