Add javascript validation to form.  ugly, but working.