Added check to see if there is a jwt token in the localstorage.