Update index.view.php

validation &