fix minor issues of  register page and user edit page