Ensure that the type isn't set to null for username and dateTime
Keep mlrest.js for general use of REST API