*adding validation.