update login sample