add validation to Entry model