Automated Input Not taken as a valid input

I used element.send_keys(“xyz”), to the mandatory text input field, it takes the input and the input is valid only. But that text field throughs “This field is required” and not able to save or Log-in by this issue. Can anyone have any idea to resolve this issue? Please.