Added domain validation to the validation class