Added constructor for ValidationError