Added a method to render html input fields to avoid errors

This avoids people setting something different in id and name.