Form freezes when filling it out