Fix bugs in template and styles for registration

Ensure that we use the input type specified for each datatype, and make
sure that the CSS for the non-text inputs is consistent.