check form IDs not None to allow for '0'