finished JS error checking for form