hanan1
2
how nice to see creators caring about ux! 
you can simply make a field red only when it is invalid AND isn’t focused.

That being said, error prevention is also an important heuristic in UX design. Therefore having a field appear in invalid state as long as it is invalid keeps user attention on the input until they fix it. It helps to have assisting text beneath it to ease the anxiety the red border may cause.
1 Like