Refactor index.php to allow for null labels passed to form input