Setting localStorage needs to be checked