making errors set seen as true only after rendered