add validation stuff