Form loading slow and showing HTML in header