validation mechanism in place for index.html