adding validate method to ArrayList base