add localStorage for authentication