form error messages for js validation