additional validation
clarifications to js
will now switch tabs to show a form element that gets focussed