Added local storage to fix user being lost from front end on refresh