Added null check for when no validation errors have occured.