refactored linkedin login and added local storage