fix error in updatepassword and registe interface