updated form

updated form elements and attributes, as well as, javascript to
optimize validation