Fix JS bugs w/validateForm