when login, record user info