add validation to ar models