Conditions and required validations are not working when form is embedded as script even on clean HTML page