users can now logout from index page