How to customize Signup?

I have followed saurabh2804 in this post for customization of signup page to include mobile_no. Code is running and creating new user without any error BUT code is not saving mobile_no in db. I’ve confirmed that login.js is taking value of mobile_no form login.html page. I think the problem is coming with the, could anyone help?