Why does my form keep becoming disabled?