Store user object in localStorage