Fixed html validator issues in index.php and rules.php