animate focus and error highlight on inputs