Added redirection to index page after logout.