Refactored add_field logic away from form POST handler.