Add validation for index page