CCW-9 Updates js to validate form onsubmit.