reformat code
show the first invalidated field on global validation

switch tabs and/or scroll so that the invalid field is visible
update TODOs