store user in localStorage
replaced isLoggedIn with getCurrentUser