add validation function for option validation