added localStorage to store username & password