Added redirection on index page, if user is stored in local storage.