use of localStorage to save users and accounts