Condition to show/hide page is not working in form.