improved animations for focus and error highlighting on inputs