added persisting user data in local storage