fix failing index API test
rename validate funtion argument to validate.params to avoid collision with the validate API