Form builder not functioning correctly