validate.curve function

A Validate.curve function