Add validation to TimeEntry model.