Return error status when validation failed.