use localStorage for authentication && UserService refactoring