two fields has been added in user model and have created javascript for that