make sure form is inited correctly