Changing in the login page or login js will have an effect on updating frappe or erpnext?

I wanted to know that if i make any changes in the login page or login js, will this cause any problems in future updates of frappe or erpnext???

If you modify files from frappe or erpnext, you are going to have problems when you run bench update. You are going to have to use git from the folder, probably something like git stash and so on.

what if i do it using my custom app. I have implemented the signup page using my custom app but i am unable to implement the otp functionality using my own custom app.
Actually I want to implement otp signup through mobile number??