Why is my form displaying blank after loading?