Implemented local storage for th user object to reduce requests to the nodeJS server