fixed javascript for edit registered user