update login,but there is bug