Conditional Logic Not Working in Form