Add validation of rest.createTask params.
Update validation of rest.createTask params.