adding validation and name