field is hided even if checked on load and reload

Spouse name field is hided on page reload when validation failed or when update form is loading even the married field is checked without an if...