fixing the validation for UUID