redirecting to login if user id is not saved in local storage