Why is my form always getting disabled?