update index.html add validate