Disable input field if using machine learning