login-success callback
fix some bug in login module