update input.focused. adjust alerts and input validation states