fixing form code