added field type to determine if date, text, textarea, checkbox, etc