Why does my form keep getting disabled?