Programmatically check if any validation error ?