"fields" & "fieldTypes" are not hard-coded anymore.
fix #2, filtering user input by data type
improve readability and change the "url" back to the normal one