Auto call Api when page load

I created login page, on submit action i have add django api, its works perfetcly but when page reload or go to particular page, before click on submit button, it becomes automatic call so I get error in that api.
Thanks


Hey @Gajanan_Rajput
Could you please attach HAR file?