Refactored non-POST portion of new_food.php for readability