updated registration response dataType to JSON