Why my form is getting freezed when entering data in the State field?