I am sorry for the late reply.
Firstly you need to add the lines I mentioned to the login/signup_form.php file for it to show up on the sign up form.
You would need to add a column in the table mdl_user , the name of the column would be same as the id of the element you added in the form. That should ideally do the trick. let me know if it doesn't work.